import { Injectable } from "@nestjs/common";

import * as qr from 'qr-image'


@Injectable()
export class QrCodeService{

    generateQrCode(text:string,options:qr.Options={size:15}):Buffer|string{
        return qr.imageSync(text,options)
    }

}